package com.fan.leetcode;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 218. 天际线问题
 * @author ZhangFan
 * @since 2021/7/13 下午 11:05
 */
public class Question218 {
    public List<List<Integer>> getSkyline(int[][] buildings) {
        Map<Integer, Integer> map = new HashMap<>();
        for (int[] building : buildings) {
            for (int i = building[0]; i <= building[1]; i++) {
                if (map.getOrDefault(i, 0) < building[2]) {
                    map.put(i, building[2]);
                }
            }
        }
        return null;
    }
}
